home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_12_03
/
saks
/
fewer.h
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1994-01-12
|
311 b
|
19 lines
Listing 5 - a derived class whose virtual functions have fewer cv-
qualifiers than the functions they override
class B
{
...
virtual const BB *f();
virtual const volatile BB &g();
...
};
class D : public B
{
...
DD *f();
const DD &g();
...
};